import request from '@/utils/request.js'
// 获取分类id对应的属性列表
export const getAttrListApi = (id, sel) => request(`/categories/${id}/attributes`, 'get', { sel })

// 编辑提交参数
export const editAttrApi = data => request(`/categories/${data.id}/attributes/${data.attrId}`, 'put', data)